package lab01;

public class Test04 {
    public static void main(String[] args) {
        //用for循环将i从1加到100
        int i;
        int sum = 0;
        for (i = 1; i < 100; i++) {
            sum = sum + i;
        }
        System.out.println(sum);
    }
}
